stack: Cosmetic documentation fixes
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Jun 2020 12:06:17 +0000 (08:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 Jun 2020 16:23:52 +0000 (12:23 -0400)
Fix parameter mismatches.

gtk/gtkstack.c
gtk/gtkstack.h

index b37769dac56e49b63f1be8aa3a317ab1c38448fa..423676fc1e263025b14779187baf2be3e967a1ae 100644 (file)
@@ -1504,16 +1504,16 @@ gtk_stack_get_child_by_name (GtkStack    *stack,
 
 /**
  * gtk_stack_page_get_child:
- * @page: a #GtkStackPage
+ * @self: a #GtkStackPage
  *
- * Returns the stack child to which @page belongs.
+ * Returns the stack child to which @self belongs.
  *
- * Returns: (transfer none): the child to which @page belongs
+ * Returns: (transfer none): the child to which @self belongs
  */
 GtkWidget *
-gtk_stack_page_get_child (GtkStackPage *page)
+gtk_stack_page_get_child (GtkStackPage *self)
 {
-  return page->widget;
+  return self->widget;
 }
 
 /**
@@ -2456,11 +2456,13 @@ gtk_stack_get_pages (GtkStack *stack)
 
 /**
  * gtk_stack_page_get_visible:
- * @page: a #GtkStackPage
+ * @self: a #GtkStackPage
  *
  * Returns whether @page is visible in its #GtkStack.
  * This is independent from the #GtkWidget:visible value of its
  * #GtkWidget.
+ *
+ * Returns: %TRUE if @page is visible
  */
 gboolean
 gtk_stack_page_get_visible (GtkStackPage *self)
@@ -2472,7 +2474,7 @@ gtk_stack_page_get_visible (GtkStackPage *self)
 
 /**
  * gtk_stack_page_set_visible:
- * @page: a #GtkStackPage
+ * @self: a #GtkStackPage
  * @visible: The new property value
  *
  * Sets the new value of the #GtkStackPage:visible property
index 57ccf26e863e923f94fa1ea052abfdf6f8265de6..fd797c93a25041980e09497d92f3aa339dec4322 100644 (file)
@@ -73,7 +73,7 @@ typedef enum {
 GDK_AVAILABLE_IN_ALL
 GType                  gtk_stack_page_get_type            (void) G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-GtkWidget *            gtk_stack_page_get_child           (GtkStackPage           *page);
+GtkWidget *            gtk_stack_page_get_child           (GtkStackPage           *self);
 GDK_AVAILABLE_IN_ALL
 gboolean               gtk_stack_page_get_visible         (GtkStackPage           *self);
 GDK_AVAILABLE_IN_ALL